//
//  ExamQuestionsCollectionViewCell.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/6/4.
//

#import "JPCollectionViewCell.h"
#import "ExamQuestionModel.h"
#import "ExamQuestionOptionsModel.h"

NS_ASSUME_NONNULL_BEGIN

@class ExamQuestionsCollectionViewCell;

@protocol ExamQuestionsCollectionViewCellDelegate <NSObject>

@optional

-(void)answerQuestionTap:(ExamQuestionsCollectionViewCell*)cell andOptionsModel:(ExamQuestionOptionsModel*)optionsModel;

-(void)checkQuestionTap:(ExamQuestionsCollectionViewCell*)cell;

-(void)hearingTap:(ExamQuestionsCollectionViewCell*)cell;

@end

@interface ExamQuestionsCollectionViewCell : JPCollectionViewCell

@property(nonatomic,weak)id<ExamQuestionsCollectionViewCellDelegate>delegate;
@property(nonatomic,strong)ExamQuestionModel *model;
@property(nonatomic,assign)NSInteger testType;//0 专项测试 1考试试卷 2试卷查看解析 3专项解析 4收藏夹
@property(nonatomic,assign)NSInteger item;
@property(nonatomic,assign)CGFloat currentAvailableWidth;
-(void)refeshUI;
-(void)refreshAnalysisUIWithModel:(ExamQuestionModel*)model;
-(void)startVoiceAnimation;
-(void)stopVoiceAnimation;

@end

NS_ASSUME_NONNULL_END
